package com.zoo.test;

import com.zoo.adaptee.WildTurkey;
import com.zoo.adapters.TurkeyAdapter;
import com.zoo.target.Duck;
import com.zoo.target.MallarDuck;

public class DuckTestDrive {
	public static void main(String[] args) {
		MallarDuck duck = new MallarDuck();
		
		WildTurkey turkey = new WildTurkey();
		Duck turkeyAdapter = new TurkeyAdapter(turkey);
		System.out.println("The turkey says...");
		turkey.gobble();
		turkey.fly();
		
		System.out.println("The Duck says...");
		duck.quack();
		duck.fly();
		
		System.out.println("The adapter turkey says...");
		testDuck(turkeyAdapter);
	}
	
	static void testDuck(Duck duck) {
		duck.quack();
		duck.fly();
	}
}
